<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>

<blockquote class="layui-elem-quote"><{$action}></blockquote>

<form class="layui-form layui-form-pane" method="post" action="/video/<{if $videos_info.id|default:"" > 0}>edit<{else}>edit<{/if}>" id="add_user">
	<input type="hidden" value="<{$videos_info['id']|default:"0"}>" name="id" />

	<div class="layui-form-item">
		<label class="layui-form-label">视频标题</label>
		<div class="layui-input-block">
            <input type="text" class="layui-input" disabled="disabled" name="title" lay-verify="required" value="<{$videos_info.title|default:""}>" >
		</div>
	</div>

	<div class="layui-form-item layui-form-text">
		<label class="layui-form-label">视频描述</label>
		<div class="layui-input-block">
            <textarea name="description" disabled="disabled" class="layui-textarea"><{$videos_info.description|default:""}></textarea>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">视频分类</label>
		<div class="layui-input-block">
            <select disabled="disabled" name="cate_id">
	         	<option value="0" selected>请选择</option>
			    <{foreach from=$cate item=item}>
				<option value="<{$item['id']}>" <{if isset($videos_info['cate_id'])}><{if $item['id'] eq $videos_info['cate_id']}> selected<{/if}><{/if}> ><{$item['name']}></option>
			    <{/foreach}>
			</select>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">视频课程</label>
		<div class="layui-input-block">
            <select name="course_id" disabled="disabled">
	         	<option value="0" selected>请选择</option>
			    <{foreach from=$course item=item}>
				<option value="<{$item['id']}>" <{if isset($videos_info['course_id'])}><{if $item['id'] eq $videos_info['course_id']}> selected<{/if}><{/if}> ><{$item['title']}></option>
			    <{/foreach}>
			</select>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">视频封面图</label>
		<div class="layui-input-block">
            
            <{if isset($videos_info['image_url']) AND $videos_info['image_url'] != ''}>
	  			<div class="layui-inline" style="float:left;"><img src="<{$videos_info['image_url']}>" style="max-height:175px;"/></div>
	  		<{/if}>
		</div>
	</div>

	<!-- <div class="layui-form-item">
	  		<label class="layui-form-label">上传视频</label>
			    <div class="layui-input-block">
		            <div id="uploader4" class="upload_box" style="float:left;">
		            	<input type="hidden" id="writetoken" value="<{'VIMG'|get_qiniu_token}>" />
		                <div class="queueList">
		                    <div id="dndArea4" class="placeholder dndArea">
		                        <div id="filePicker4" class="filePicker"></div>
		                        <p>或将照片拖到这里，最多可上传<script>document.write(fileNumLimit);</script>张图片</p>
		                    </div>
		                </div>
		                <div class="statusBar" style="display:none;">
		                    <div class="progress">
		                        <span class="text">0%</span>
		                        <span class="percentage"></span>
		                    </div><div class="info"></div>
		                    <div class="btns">
		                        <div id="filePickerBut4" class="filePickerBut"></div><div class="uploadBtn">开始上传</div>
		                    </div>
		                </div>
		                <div class="upload_img_input" input_name='video_url'></div>
		            </div>
		  		</div>
          	<div class="Validform_checktip oi_ab ab_380px"></div>
		</div> -->
	<div class="h60"></div>

	
</form>

<{include file="public_html/footer.html"}>